//
//  CommentToolBar.h
//  MeiXiu
//
//  Created by Yuan on 12-10-31.
//
//

#import <UIKit/UIKit.h>

@class CommentToolBar;

@protocol CommentToolBarDelegate <NSObject>

//send buttton action
-(void)toolBarButtonDone:(UIButton *)_btn toolBarView:(CommentToolBar *)_toolBar text:(NSString *)_text;

//textfield start editing
-(void)toolBarDidBegainEditing:(CommentToolBar *)_toolBar;

//textfield end editing
-(void)toolBarDidEndEditing:(CommentToolBar *)_toolBar;

//textfield return
-(void)toolBarShoulReturn:(CommentToolBar *)_toolBar;

@end

@interface CommentToolBar : UIView<UITextFieldDelegate>{
    
@private
	
	UIButton *doneBtn;
	
@public
    
    UITextField *txtField;
	
	id<CommentToolBarDelegate>delegate;
	NSString *text;
}

@property (nonatomic,assign)id<CommentToolBarDelegate>delegate;
@property (nonatomic,retain)NSString *text;

- (id)initWithFrame:(CGRect)frame delegate:(id)delegate_;

@end

